﻿package org.gwt.server;

import org.gwt.client.TutorService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import org.gwt.server.redes.Problema;

public class TutorServiceImpl extends RemoteServiceServlet implements TutorService {
	private static final long serialVersionUID = 1L;

	Problema problema;

	public String greet(String greet) {
		System.out.println("El método greet desde el servidor");
		return("Hola "+greet+"!!!!");
	}
	
	public void seleccionarProblema(String num) {
		int numProb=Integer.parseInt(num);
		problema=new Problema(numProb);
	}
	
	public String validaVectorPosicion(String defVector) {
		return problema.searchElement(defVector);
	}

}